home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Stacks / Hyper Business / Phone & Address Stuff / Memory Phone / card_2913.txt < prev    next >
Encoding:
Text File  |  1988-04-19  |  11.1 KB  |  387 lines

  1. -- card: 2913 from stack: in
  2. -- bmap block id: 3436
  3. -- flags: 0000
  4. -- background id: 2771
  5. -- name: Personal
  6.  
  7.  
  8. -- part 6 (button)
  9. -- low flags: 00
  10. -- high flags: 2000
  11. -- rect: left=341 top=272 right=296 bottom=369
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 19678 / 19678
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: 8PupS
  20. ----- HyperTalk script -----
  21. --This is a supercharged version of the Pop-Up Note idea
  22. --originated by Eastgate Systems
  23. --Upon copying this button into your stacks a field and OK button
  24. --will be generated and linked.  You may change the size, location
  25. --or fonts, just dont change the names, they are critical to the process
  26. --When you delete the arrow button the field and OK button will be
  27. --deleted automatically.
  28. --                     Use in good health,
  29. --                                 Steve Fuchs
  30. --CIS: 71270,550
  31. --GENIE: S.FUCHS
  32. --
  33.  
  34. on deletebutton
  35.   if the short name of me is "lameduck" then exit deletebutton
  36.   beep(4)
  37.   answer "That represents a Pop-up Note!!" with "Delete" or "Cancel"
  38.   if it is "Cancel" then
  39.     choose browse tool
  40.     exit deletebutton
  41.   end if
  42.   put the short name of me into myname
  43.   Put myname into fieldname
  44.   put "f" into  last character of fieldname
  45.   show card field fieldname
  46.   choose field tool
  47.   click at the location of card field fieldname
  48.   Type "X" with commandkey
  49.   put myname into okid
  50.   delete last char of okid
  51.   delete last char of okid
  52.   delete last char of okid
  53.   delete last char of okid
  54.   show card button id okid
  55.   choose button tool
  56.   click at the location of card button id okid
  57.   Type "X" with commandkey
  58.   set the name of me to "lameduck"
  59.   click at the location of me
  60.   Type "X" with commandkey
  61.   choose browse tool
  62. end deletebutton
  63.  
  64.  
  65. on mouseUp
  66.   put the short name of me into myname
  67.   Put myname into fieldname
  68.   put "f" into last character of fieldname
  69.   show card field fieldname
  70.   put myname into okid
  71.   delete last char of okid
  72.   delete last char of okid
  73.   delete last char of okid
  74.   delete last char of okid
  75.   show card button id okid
  76.   Put the name of me into holder
  77.   hide holder
  78. end mouseUp
  79.  
  80.  
  81. on newbutton
  82.   set cursor to 4
  83.   set lockscreen to true
  84.   put id of me into StartId
  85.   set lockmessages to true
  86.   set editbkgnd to false
  87.   domenu "New Field"
  88.   set name of card field number of card fields to "PupF"&StartId
  89.   Put "PupF"&StartId into holder
  90.   set style of card field holder to rectangle
  91.   put item 3 of the rect of me+1 into item 1 of Fieldrect
  92.   put item 2 of the rect of me-50 into item 2 of Fieldrect
  93.   put item 3 of the rect of me+135 into item 3 of Fieldrect
  94.   put item 4 of the rect of me into item 4 of Fieldrect
  95.   set rect of card field holder to fieldrect
  96.   set textsize of card field holder to 9
  97.   Put "This is the self-generating Pop-up note.  Implemented"&& "by Steven Fuchs"&return&"CIS id: 71270,550"&return &"GENIE id: S.FUCHS" into card field holder
  98.  
  99.  
  100.  
  101.  
  102.   domenu "New Button"
  103.   Put the id of card button the number of card buttons into Theid
  104.   Set the name of card button id Theid to "OK"
  105.   Set showname of card button id Theid to true
  106.   put item 1 of Fieldrect+95 into item 1 of butrect
  107.   put item 4 of Fieldrect-15 into item 2 of butrect
  108.   put item 1 of butrect+60 into item 3 of butrect
  109.   put item 2 of butrect+20 into item 4 of butrect
  110.   set rect of card button id Theid to butrect
  111.   Put "PupF"&Startid into holder
  112.   set name of card field holder to Theid&"PupF"
  113.   set the name of me to Theid&"PupS"
  114.   Put the name of me into holder
  115.   hide holder
  116.   set script of card button id Theid to ""
  117.   Put "on mouseup" into line 1 of scr
  118.   Put "Put the id of me into canid" into line 2 of scr
  119.   Put "Put canid&""e&"pupf""e&" into holder" into line 3 of scr
  120.  
  121.   Put "Hide card button id canid" into line 4 of scr
  122.   Put "hide card field holder" into line 5 of scr
  123.  
  124.   Put "Put canid&""e&"pups""e&" into holder" into line 6 of scr
  125.   Put "show card button holder" into line 7 of scr
  126.  
  127.   Put return&"end mouseup" after scr
  128.   set script of card button id Theid to scr
  129.   choose browse tool
  130. end newbutton
  131.  
  132.  
  133.  
  134. -- part 7 (field)
  135. -- low flags: 81
  136. -- high flags: 0002
  137. -- rect: left=146 top=149 right=230 bottom=359
  138. -- title width / last selected line: 0
  139. -- icon id / first selected line: 0 / 0
  140. -- text alignment: 1
  141. -- font id: 2
  142. -- text size: 12
  143. -- style flags: 768
  144. -- line height: 16
  145. -- part name: 8PupF
  146.  
  147.  
  148. -- part 8 (button)
  149. -- low flags: 80
  150. -- high flags: 8003
  151. -- rect: left=321 top=217 right=237 bottom=381
  152. -- title width / last selected line: 0
  153. -- icon id / first selected line: 0 / 0
  154. -- text alignment: 1
  155. -- font id: 0
  156. -- text size: 12
  157. -- style flags: 0
  158. -- line height: 16
  159. -- part name: OK
  160. ----- HyperTalk script -----
  161. on mouseup
  162.   Put the id of me into canid
  163.   Put canid&"pupf" into holder
  164.   Hide card button id canid
  165.   hide card field holder
  166.   Put canid&"pups" into holder
  167.   show card button holder
  168. end mouseup
  169.  
  170.  
  171. -- part 12 (button)
  172. -- low flags: 00
  173. -- high flags: 2000
  174. -- rect: left=378 top=275 right=294 bottom=398
  175. -- title width / last selected line: 0
  176. -- icon id / first selected line: 26635 / 26635
  177. -- text alignment: 1
  178. -- font id: 0
  179. -- text size: 12
  180. -- style flags: 0
  181. -- line height: 16
  182. -- part name: 14PupS
  183. ----- HyperTalk script -----
  184. --This is a supercharged version of the Pop-Up Note idea
  185. --originated by Eastgate Systems
  186. --Upon copying this button into your stacks a field and OK button
  187. --will be generated and linked.  You may change the size, location
  188. --or fonts, just dont change the names, they are critical to the process
  189. --When you delete the arrow button the field and OK button will be
  190. --deleted automatically.
  191. --                     Use in good health,
  192. --                                 Steve Fuchs
  193. --CIS: 71270,550
  194. --GENIE: S.FUCHS
  195. --
  196.  
  197. on deletebutton
  198.   if the short name of me is "lameduck" then exit deletebutton
  199.   beep(4)
  200.   answer "That represents a Pop-up Note!!" with "Delete" or "Cancel"
  201.   if it is "Cancel" then
  202.     choose browse tool
  203.     exit deletebutton
  204.   end if
  205.   put the short name of me into myname
  206.   Put myname into fieldname
  207.   put "f" into  last character of fieldname
  208.   show card field fieldname
  209.   choose field tool
  210.   click at the location of card field fieldname
  211.   Type "X" with commandkey
  212.   put myname into okid
  213.   delete last char of okid
  214.   delete last char of okid
  215.   delete last char of okid
  216.   delete last char of okid
  217.   show card button id okid
  218.   choose button tool
  219.   click at the location of card button id okid
  220.   Type "X" with commandkey
  221.   set the name of me to "lameduck"
  222.   click at the location of me
  223.   Type "X" with commandkey
  224.   choose browse tool
  225. end deletebutton
  226.  
  227.  
  228. on mouseUp
  229.   put the short name of me into myname
  230.   Put myname into fieldname
  231.   put "f" into last character of fieldname
  232.   show card field fieldname
  233.   put myname into okid
  234.   delete last char of okid
  235.   delete last char of okid
  236.   delete last char of okid
  237.   delete last char of okid
  238.   show card button id okid
  239.   Put the name of me into holder
  240.   hide holder
  241. end mouseUp
  242.  
  243.  
  244. on newbutton
  245.   set cursor to 4
  246.   set lockscreen to true
  247.   put id of me into StartId
  248.   set lockmessages to true
  249.   set editbkgnd to false
  250.   domenu "New Field"
  251.   set name of card field number of card fields to "PupF"&StartId
  252.   Put "PupF"&StartId into holder
  253.   set style of card field holder to rectangle
  254.   put item 3 of the rect of me+1 into item 1 of Fieldrect
  255.   put item 2 of the rect of me-50 into item 2 of Fieldrect
  256.   put item 3 of the rect of me+135 into item 3 of Fieldrect
  257.   put item 4 of the rect of me into item 4 of Fieldrect
  258.   set rect of card field holder to fieldrect
  259.   set textsize of card field holder to 9
  260.   Put "This is the self-generating Pop-up note.  Implemented"&& "by Steven Fuchs"&return&"CIS id: 71270,550"&return &"GENIE id: S.FUCHS" into card field holder
  261.  
  262.  
  263.  
  264.  
  265.   domenu "New Button"
  266.   Put the id of card button the number of card buttons into Theid
  267.   Set the name of card button id Theid to "OK"
  268.   Set showname of card button id Theid to true
  269.   put item 1 of Fieldrect+95 into item 1 of butrect
  270.   put item 4 of Fieldrect-15 into item 2 of butrect
  271.   put item 1 of butrect+60 into item 3 of butrect
  272.   put item 2 of butrect+20 into item 4 of butrect
  273.   set rect of card button id Theid to butrect
  274.   Put "PupF"&Startid into holder
  275.   set name of card field holder to Theid&"PupF"
  276.   set the name of me to Theid&"PupS"
  277.   Put the name of me into holder
  278.   hide holder
  279.   set script of card button id Theid to ""
  280.   Put "on mouseup" into line 1 of scr
  281.   Put "Put the id of me into canid" into line 2 of scr
  282.   Put "Put canid&""e&"pupf""e&" into holder" into line 3 of scr
  283.  
  284.   Put "Hide card button id canid" into line 4 of scr
  285.   Put "hide card field holder" into line 5 of scr
  286.  
  287.   Put "Put canid&""e&"pups""e&" into holder" into line 6 of scr
  288.   Put "show card button holder" into line 7 of scr
  289.  
  290.   Put return&"end mouseup" after scr
  291.   set script of card button id Theid to scr
  292.   choose browse tool
  293. end newbutton
  294.  
  295.  
  296.  
  297. -- part 13 (field)
  298. -- low flags: 81
  299. -- high flags: 0007
  300. -- rect: left=155 top=78 right=187 bottom=427
  301. -- title width / last selected line: 0
  302. -- icon id / first selected line: 0 / 0
  303. -- text alignment: 0
  304. -- font id: 3
  305. -- text size: 9
  306. -- style flags: 0
  307. -- line height: 12
  308. -- part name: 14PupF
  309.  
  310.  
  311. -- part 14 (button)
  312. -- low flags: 80
  313. -- high flags: 8003
  314. -- rect: left=353 top=184 right=204 bottom=413
  315. -- title width / last selected line: 0
  316. -- icon id / first selected line: 0 / 0
  317. -- text alignment: 1
  318. -- font id: 0
  319. -- text size: 12
  320. -- style flags: 0
  321. -- line height: 16
  322. -- part name: OK
  323. ----- HyperTalk script -----
  324. on mouseup
  325.   Put the id of me into canid
  326.   Put canid&"pupf" into holder
  327.   Hide card button id canid
  328.   hide card field holder
  329.   Put canid&"pups" into holder
  330.   show card button holder
  331. end mouseup
  332.  
  333.  
  334. -- part 21 (button)
  335. -- low flags: 80
  336. -- high flags: 8003
  337. -- rect: left=167 top=143 right=165 bottom=267
  338. -- title width / last selected line: 0
  339. -- icon id / first selected line: 0 / 0
  340. -- text alignment: 1
  341. -- font id: 0
  342. -- text size: 12
  343. -- style flags: 0
  344. -- line height: 16
  345. -- part name: Say it
  346. ----- HyperTalk script -----
  347. on mouseUp
  348.   Put "20Pupf" into holder
  349.   Put card field holder into thefield
  350.   speak thefield
  351. end mouseUp
  352.  
  353.  
  354.  
  355. -- part contents for background part 32
  356. ----- text -----
  357. Personal
  358.  
  359. -- part contents for card part 7
  360. ----- text -----
  361. This is the Memoryphone
  362. by Steven Fuchs
  363. Free, comments welcome
  364. CIS id:71270,550
  365. GEnie:S.FUCHS
  366.  
  367. -- part contents for card part 13
  368. ----- text -----
  369. The Memory Phone is a stack for storing phone numbers, when you don't want to sift through the Address stack just to make a call.
  370.  
  371. Blank boxes can be filled simply by clicking in them, clicking with the option key down shows you the associated phone number, clicking with the shift key held down will erase the contents of that box.
  372.  
  373. The redial buffer holds the last 5 numbers dialed,
  374. clicking on these boxes produce the same results although they will not be erased one at a time, to clear the buffer you shift-click on the "Redial Buffer" sign.  Numbers that are dialed and are in the redial area will not be placed there, as it cuts down on repetitivity.
  375.  
  376. The phone buttons on the right reference other pages in this directory, click on an unused button to start a new page.
  377.  
  378. This stack is free for the taking and distributing.
  379. Comments appreciated.
  380.  
  381. Steven Fuchs
  382. PO Box 129
  383. Coram, NY 11727
  384.  
  385. CIS:71270,550
  386. GEnie:S.FUCHS
  387.